<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h4>打印用户信息：</h4>
<table border="1" cellspacing="0">
    <tr>
        <th>ID</th>
        <th>name</th>
        <th>age</th>
    </tr>
    <tr th:each="user,iterStat:${users}">
        <th th:text="${user.id}"></th>
        <th th:text="${user.name}"></th>
        <th th:text="${user.age}"></th>
    </tr>
</table>

<h4>print user info：</h4>
<table border="1" cellspacing="0">
    <tr>
        <th>ID</th>
        <th>name</th>
        <th>age</th>
    </tr>
    <tr th:each="user,iter:${users}">
        <th th:text="${user.id}"></th>
        <th th:text="${user.name}"></th>
        <th th:text="${user.age}"></th>
    </tr>
</table>
</body>
</html>